import { AuthCode } from '@/modules/auth';
const kgjRoutes = [
  {
    path: '/kgj',
    name: 'Kgj',
    component: 'Layout',
    meta: { title: '考古加CRM' },
    redirect: { name: 'KgjIndex' },
    children: [
      {
        path: 'index',
        name: 'KgjIndex',
        meta: { title: '主页', icon: 'icon-home' },
        component: () => import('@/views/crm-kgj/home/index.vue')
      },
      {
        path: 'dataStatistics',
        name: 'KgjDataStatistics',
        meta: { authCode: AuthCode.KGJ_DATA_STATISTICS, title: '数据统计', icon: 'icon-statistics' },
        component: () => import('@/views/crm-kgj/data-statistics/index.vue')
      },
      // {
      //   path: 'board',
      //   name: 'KgjBoard',
      //   meta: {
      //     authCode: 1000000,
      //     title: '看板',
      //     icon: 'board'
      //   },
      //   component: () => import('@/views/crm-kgj/view-board/index.vue')
      // },
      // {
      //   path: 'analysis',
      //   name: 'KgjAnalysis',
      //   meta: {
      //     authCode: 1000000,
      //     title: '分析',
      //     icon: 'analysis'
      //   },
      //   children: [
      //     {
      //       path: 'whole',
      //       name: 'KgjAnalysisWhole',
      //       component: () => import('@/views/crm-kgj/data-analysis/whole-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '整体'
      //       }
      //     },
      //     {
      //       path: 'behavior',
      //       name: 'KgjAnalysisBehavior',
      //       component: () => import('@/views/crm-kgj/data-analysis/behavior-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '行为'
      //       }
      //     },
      //     {
      //       path: 'funnel',
      //       name: 'KgjAnalysisFunnel',
      //       component: () => import('@/views/crm-kgj/data-analysis/funnel-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '漏斗'
      //       }
      //     },
      //     {
      //       path: 'page',
      //       name: 'KgjAnalysisPage',
      //       component: () => import('@/views/crm-kgj/data-analysis/page-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '页面'
      //       }
      //     }
      //   ]
      // },
      // {
      //   path: 'scene',
      //   name: 'KgjScene',
      //   meta: {
      //     authCode: 1000000,
      //     title: '场景',
      //     icon: 'scene'
      //   },
      //   children: [
      //     {
      //       path: 'obtain',
      //       name: 'KgjSceneObtain',
      //       component: () => import('@/views/crm-kgj/page-scene/obtain-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '获取'
      //       }
      //     },
      //     {
      //       path: 'access',
      //       name: 'KgjSceneAccess',
      //       component: () => import('@/views/crm-kgj/page-scene/access-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '路径'
      //       }
      //     },
      //     {
      //       path: 'income',
      //       name: 'KgjSceneIncome',
      //       component: () => import('@/views/crm-kgj/page-scene/income-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '收入'
      //       }
      //     },
      //     {
      //       path: 'remain',
      //       name: 'KgjSceneRemain',
      //       component: () => import('@/views/crm-kgj/page-scene/remain-index.vue'),
      //       meta: {
      //         authCode: 1000000,
      //         title: '留存'
      //       }
      //     }
      //   ]
      // },
      {
        path: 'userManage',
        name: 'KgjUserManage',
        meta: { title: '用户管理', icon: 'icon-user', alwaysShow: true },
        children: [
          {
            path: 'index',
            name: 'KgjUserManageIndex',
            component: () => import('@/views/crm-kgj/user-manage/index.vue'),
            meta: { authCode: AuthCode.KGJ_USER_LIST, title: '考古加用户管理' }
          },
          {
            path: 'majorCustomer',
            name: 'KgjMajorCustomer',
            component: () => import('@/views/crm-kgj/major-customer/index.vue'),
            meta: { authCode: AuthCode.KGJ_USER_MAJOR_CLUE_LIST, title: '大客户线索' }
          }
        ]
      },
      {
        path: 'orderManage',
        name: 'KgjOrderManage',
        meta: { authCode: AuthCode.KGJ_ORDER_LIST, title: '考古加订单管理', icon: 'icon-order' },
        component: () => import('@/views/crm-kgj/order-manage/index.vue')
      },
      /** 与产品统一过，加法公社先隐藏 */
      /* {
        path: 'commune',
        name: 'commune',
        meta: {
          authCode: 1804,
          title: '加法公社'
        },
        children: [
          {
            path: 'userManage',
            name: 'KgjCommuneUserManage',
            component: () => import('@/views/crm-kgj/commune-user-manage/index.vue'),
            meta: {
              authCode: 1804,
              title: '用户管理'
            }
          },
          {
            path: 'orderManage',
            name: 'KgjCommuneOrderManage',
            component: () => import('@/views/crm-kgj/commune-order-manage/index.vue'),
            meta: {
              authCode: 1805,
              title: '订单管理'
            }
          }
        ]
      }, */
      {
        path: 'goldDigging',
        name: 'GoldDigging',
        meta: { title: '掘金后台管理', icon: 'icon-money', alwaysShow: true },
        children: [
          {
            path: 'activityWeb',
            name: 'KgjGoldDiggingActivityWeb',
            component: () => import('@/views/crm-kgj/juejin/activity-web/index.vue'),
            meta: { title: '活动管理web端' }
          },
          {
            path: 'activityMobile',
            name: 'KgjGoldDiggingActivityMobile',
            component: () => import('@/views/crm-kgj/juejin/activity-mobile/index.vue'),
            meta: { title: '活动管理app端' }
          },
          {
            path: 'goodsList',
            name: 'KgjGoldDiggingGoodsList',
            component: () => import('@/views/crm-kgj/juejin/goods-list/index.vue'),
            meta: { title: '商品管理' }
          },
          {
            path: 'secondColonel',
            name: 'KgjGoldDiggingSecondColonel',
            component: () => import('@/views/crm-kgj/juejin/second-colonel/index.vue'),
            meta: { title: '二级团长数据' }
          }
        ]
      },
      {
        path: 'invest',
        name: 'KgjInvest',
        meta: { title: '招商管理', icon: 'icon-business', alwaysShow: true },
        children: [
          {
            path: 'productPool',
            name: 'KgjInvestProductPool',
            component: () => import('@/views/crm-kgj/invest/product-pool/index.vue'),
            meta: { authCode: AuthCode.KGJ_PRODUCT_POOL, title: '商品海' }
          },
          {
            path: 'claimPool',
            name: 'KgjInvestClaimPool',
            component: () => import('@/views/crm-kgj/invest/claim-pool/index.vue'),
            meta: { authCode: AuthCode.KGJ_CLAIM_POOL, title: '认领池' }
          }
        ]
      },
      {
        path: 'salesManage',
        name: 'KgjSalesManage',
        meta: { title: '销售管理', icon: 'icon-shopping', alwaysShow: true },
        children: [
          {
            path: 'salesData',
            name: 'KgjSalesData',
            component: () => import('@/views/crm-kgj/sales-data/index.vue'),
            meta: { authCode: AuthCode.KGJ_SALES_DATA, title: '销售数据' }
          },
          {
            path: 'salesOrder',
            name: 'KgjSalesOrder',
            component: () => import('@/views/crm-kgj/sales-order/index.vue'),
            meta: { authCode: AuthCode.KGJ_SALES_ORDER_LIST, title: '销售订单' }
          },
          {
            path: 'myClue',
            name: 'KgjMyClue',
            component: () => import('@/views/crm-kgj/my-clue/index.vue'),
            meta: { authCode: AuthCode.KGJ_SALES_GET_MY_CLUE_LIST, title: '我的线索' }
          },
          {
            path: 'allClue',
            name: 'KgjAllClue',
            component: () => import('@/views/crm-kgj/all-clue/index.vue'),
            meta: { authCode: AuthCode.KGJ_SALES_ALL_CLUE_LIST, title: '全部线索' }
          }
        ]
      },
      {
        path: 'calendarManage',
        name: 'KgjCalendarManage',
        meta: { title: '日历管理', icon: 'icon-order-manage', alwaysShow: true },
        children: [
          {
            path: 'recommendGoods',
            name: 'KgjRecommendGoods',
            component: () => import('@/views/crm-kgj/recommend-goods/index.vue'),
            meta: { authCode: AuthCode.KGJ_CALENDAR_GOODS_LIST, title: '推荐商品' }
          }
        ]
      },
      {
        path: 'toolsManage',
        name: 'KgjToolsManage',
        meta: { title: '工具', icon: 'icon-business-id', alwaysShow: true },
        children: [
          {
            path: 'toolsDarenUid',
            name: 'KgjToolsDarenUid',
            component: () => import('@/views/crm-kgj/tools-daren-uid/index.vue'),
            meta: { title: '达人UID' }
          }
        ]
      },
      {
        path: 'authManage',
        name: 'KgjAuthManage',
        meta: { title: '权限管理', icon: 'icon-lock', alwaysShow: true },
        children: [
          {
            path: 'jobAuthority',
            name: 'KgjJobAuthority',
            component: () => import('@/views/crm-kgj/job-authority/index.vue'),
            meta: { authCode: AuthCode.KGJ_AUTH_ROLE_LIST, title: '岗位权限' }
          },
          {
            path: 'accountManage',
            name: 'KgjAccountManage',
            component: () => import('@/views/crm-kgj/account-manage/index.vue'),
            meta: { authCode: AuthCode.KGJ_AUTH_ROLE_LIST, title: '账号管理' }
          }
        ]
      }
    ]
  }
];

export default kgjRoutes;
